Module-level declarations

Types

Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
val MS_PER_HOUR: integer = 3600000

Functions

Link copied to clipboard
function _calculate_bjorn_reward_on_date(account_id: byte_array, timestamp: integer): integer
Link copied to clipboard
function _calculate_time_passed(from_date: integer, to_date: integer): integer
Link copied to clipboard
function _request_daily_reward_on_date(account_id: byte_array, timestamp: integer)
Link copied to clipboard
function _verify_min_time_passed(from_date: integer, to_date: integer): integer
Link copied to clipboard
function calculate_reward_tokens_for_all_plots(number_of_plots: integer, time_passed_in_hours: integer): integer
Link copied to clipboard
Link copied to clipboard
function get_enabled(): boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
function set_enabled(enabled: boolean)
Link copied to clipboard
Link copied to clipboard
function set_max_cap_per_plot(max_cap: integer)
Link copied to clipboard
function set_max_plots_stakeable(max_stakeable: integer)
Link copied to clipboard
Link copied to clipboard

Queries

Link copied to clipboard
@mount("rewards.get_last_reward_info") query get_last_reward_info(account_id: byte_array): (timestamp: integer, amount: integer)?
Link copied to clipboard
@mount("rewards.get_reward_configs") query get_reward_configs(): (enabled: boolean, frequency_in_hours: integer, bjorn_per_alice_per_hour: integer, staked_alice_per_plot: integer, max_cap_per_plot: integer, max_plots_stakeable: integer, starting_tokens_amount: integer)
Link copied to clipboard
@mount("rewards.get_unclaimed_reward_amount") query get_unclaimed_reward_amount(account_id: byte_array): integer

Operations

Link copied to clipboard
@mount("rewards.request_daily_reward") operation request_daily_reward(account_id: byte_array, auth_descriptor_id: byte_array)
Link copied to clipboard
@mount("rewards.set_global_reward_parameters") operation set_global_reward_parameters(enabled: boolean, frequency_in_hours: integer, bjorn_per_alice_per_hour: integer, staked_alice_per_plot: integer, max_cap_per_plot: integer, max_plots_stakeable: integer, starting_tokens_amount: integer)